package com.ruoyi.project.module.share.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.module.share.mapper.ShareMapper;
import com.ruoyi.project.module.share.domain.Share;
import com.ruoyi.project.module.share.service.IShareService;
import com.ruoyi.common.support.Convert;

/**
 * 影视app分享链接 服务层实现
 * 
 * @author frey
 * @date 2018-10-09
 */
@Service
public class ShareServiceImpl implements IShareService 
{
	@Autowired
	private ShareMapper shareMapper;

	/**
     * 查询影视app分享链接信息
     * 
     * @param id 影视app分享链接ID
     * @return 影视app分享链接信息
     */
    @Override
	public Share selectShareById(Integer id)
	{
	    return shareMapper.selectShareById(id);
	}
	
	/**
     * 查询影视app分享链接列表
     * 
     * @param share 影视app分享链接信息
     * @return 影视app分享链接集合
     */
	@Override
	public List<Share> selectShareList(Share share)
	{
	    return shareMapper.selectShareList(share);
	}
	
    /**
     * 新增影视app分享链接
     * 
     * @param share 影视app分享链接信息
     * @return 结果
     */
	@Override
	public int insertShare(Share share)
	{
	    return shareMapper.insertShare(share);
	}
	
	/**
     * 修改影视app分享链接
     * 
     * @param share 影视app分享链接信息
     * @return 结果
     */
	@Override
	public int updateShare(Share share)
	{
	    return shareMapper.updateShare(share);
	}

	/**
     * 删除影视app分享链接对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteShareByIds(String ids)
	{
		return shareMapper.deleteShareByIds(Convert.toStrArray(ids));
	}
	
}
